<?php

namespace mpend\modules\share\models;

use Yii;
use common\models\workbook\WorkbookMember;

/**
 * 班组记工本管理模型
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class TeamBookMemberView extends WorkbookMember {

    /**
     * @return string
     */
    public function getTags() {
        return [
            $this->occupation,
            $this->dailyWage,
        ];
    }

    /**
     * @return string
     */
    public function getSteps() {
        return [
            [
                'text' => '1.邀请',
                'desc' => '发送给微信好友',
                'inactiveIcon' => 'share-o',
            ],
            [
                'text' => '2.接受',
                'desc' => '用户完善资料',
                'inactiveIcon' => 'user-o',
            ],
            [
                'text' => '3.成功',
                'desc' => '完成工人微信绑定',
                'inactiveIcon' => 'star-o',
            ],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function fields() {
        return [
            'id',
            'realname',
            'occupation',
            'avatar',
            'user_id',
            'role_id',
            'abbrs',
            'wage',
            'dailyWage',
            'tags',
            'steps',
        ];
    }

}
